package test;

import static org.junit.Assert.*;

import java.io.IOException;

import org.junit.Test;


import test211706330.MathExam211706330;

public class test extends MathExam211706330 {

	@Test
	public void test() throws IOException {
		assertEquals("输入的年级不对",new MathExam211706330().setquestion(100,3));
	}
	@Test
	public void test1() throws IOException {
		assertEquals("输入题目数不正确",new MathExam211706330().setquestion(-2,2));
	}
	@Test
	public void test2() throws IOException {
		assertEquals("",new MathExam211706330().setquestion(100,2));
	}
	@Test
	public void test3() throws IOException {
		assertEquals("",new MathExam211706330().setquestion(100,1));
	}

}
